#define  _CRT_SECURE_NO_WARNINGS
#include"SqList.h"


void test1()
{
	SLTNode* SqList = NULL;
	SLTPushBack(&SqList, 1);
	SLTPushBack(&SqList, 2);
	SLTPushBack(&SqList, 3);
	SLTPushBack(&SqList, 4);
	SLTPushBack(&SqList, 5);
	SLTPopBack(&SqList);
	SLTPushFront(&SqList, 0);
	SLTPopFront(&SqList);
	SLTPrint(SqList);
}

void test2()
{
	SLTNode* SqList = NULL;
	SLTPushBack(&SqList, 1);
	SLTPushBack(&SqList, 2);
	SLTPushBack(&SqList, 3);
	SLTPushBack(&SqList, 4);
	SLTPushBack(&SqList, 5);
	//SLTPopBack(&SqList);
	SLTPushFront(&SqList, 0);
	SLTPopFront(&SqList);
	SLTNode* pos=SLTFind(SqList, 2);
	SLTInsert(&SqList, pos, 3);
	SLTInsertAfter(pos, 4);
	//SLTErase(&SqList, pos);
	SLTEraseAfter(pos);
	SLTPrint(SqList);
}



int main()
{
	test2();
	return 0;
}